#if !defined(AFX_TEMPLETITEMPAGE_H__D1A2180D_CBFE_4B35_B1C8_B0376C912875__INCLUDED_)
#define AFX_TEMPLETITEMPAGE_H__D1A2180D_CBFE_4B35_B1C8_B0376C912875__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TempletItemPage.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTempletItemPage dialog

class ReportField;

class CTempletItemPage : public CPropertyPage
{
	DECLARE_DYNCREATE(CTempletItemPage)

// Construction
public:
	int InsertFieldToListCtrl(ReportField * pReportField);
  std::vector<ReportField *> m_ReportFields;
	void RefreshListCtrl(int nSelectedItem = 0);
	CTempletItemPage();
	~CTempletItemPage();

// Dialog Data
	//{{AFX_DATA(CTempletItemPage)
	enum { IDD = IDD_DIALOG_TEMPLETITEMPAGE };
	CListCtrl	m_listctrl;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CTempletItemPage)
	public:
	virtual BOOL OnApply();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CTempletItemPage)
	virtual BOOL OnInitDialog();
	afx_msg void OnAppendField();
	afx_msg void OnEditField();
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDeleteField();
	afx_msg void OnMoveFieldUp();
	afx_msg void OnMoveFieldDown();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TEMPLETITEMPAGE_H__D1A2180D_CBFE_4B35_B1C8_B0376C912875__INCLUDED_)
